from PyQt6.QtWidgets import *
from PyQt6 import uic
import datetime
from UI.components.EHS工业系统 import Ui_Form


class HomePage(QWidget, Ui_Form):
    def __init__(self, parent=None):
        super().__init__(parent)
        print("主页")
        self.setupUi(self)

    def startTime(self):
        time = datetime.datetime.now()
        time_str = time.strftime("%Y-%m-%d %H:%M:%S")
        self.home_widget.label_time.setText(time_str)
